package com.baseproject.widget.refresh;

interface PullListener {
  /**
   * 下拉中
   *
   * @param refreshLayout
   * @param fraction
   */
  void onPullingDown(RefreshLayout refreshLayout, float fraction);

  /**
   * 上拉
   */
  void onPullingUp(RefreshLayout refreshLayout, float fraction);

  /**
   * 下拉松开
   *
   * @param refreshLayout
   * @param fraction
   */
  void onPullDownReleasing(RefreshLayout refreshLayout, float fraction);

  /**
   * 上拉松开
   */
  void onPullUpReleasing(RefreshLayout refreshLayout, float fraction);

  /**
   * 刷新中。。。
   */
  void onRefresh(RefreshLayout refreshLayout);

  /**
   * 加载更多中
   */
  void onLoadMore(RefreshLayout refreshLayout);

  /**
   * 手动调用finishRefresh或者finishLoadMore之后的回调
   */
  void onFinishRefresh();

  void onFinishLoadMore();

  /**
   * 正在刷新时向上滑动屏幕，刷新被取消
   */
  void onRefreshCanceled();

  /**
   * 正在加载更多时向下滑动屏幕，加载更多被取消
   */
  void onLoadMoreCanceled();
}
